package com.ruiyi.subway.enums;

public enum ExceptionCode {
    /**
     * telant business
     */
    TENANT_NOT_EXISTS(10000, "租户信息不存在"),


    /**
     * product business
     */
    PRODUCT_CREATE_NOT_ALLOWED(20000, "不允许创建产品"),
    PRODUCT_NOT_EXISTS(20001, "产品信息不存在"),

    /**
     * user business
     */
    USER_INVALID(30000, "用户审核中"),

    /**
     * params check
     */
    PARAM_ILLEGAL(40000, "参数非法")
    ;

    private String message;
    private int code;

    private ExceptionCode(int _code, String _message) {
        this.message = _message;
        this.code = _code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
